/*************************************************************************
> File Name: negate.cpp
> Author: hzy
> Created Time: 2023-08-19 15:31:04
> Description:
************************************************************************/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

void test01()
{
    int arr[] = {4, 8, 6, 7, 2, 5, 4, 66, 9, 3, 55, 96};
    int arr_len = (sizeof(arr) / sizeof(arr[0]));
    vector<int> v(arr, arr + arr_len);
    // greater：找到比65小的，not1：取反之后，找到比65大的
    vector<int>::iterator it = find_if(v.begin(), v.end(), not1(bind1st(greater<int>(), 65)));
    if (it != v.end())
    {
        cout << "找到了:data = " << *it << endl;
    }
    else
    {
        cout << "没有找到" << endl;
    }
}

int main()
{
    test01();

    return 0;
}